--[[

	GModRP - Real Garry's Mod Roleplay.
			By Slob187.
		

]]


local SKIN = {}

SKIN.fontFrame = "DefaultBold"

function SKIN:PaintFrame( panel )

	local pw, pt = panel:GetWide(), panel:GetTall()
	local ts = 25
	
	self:DrawGenericBackground( 0, 0, pw, pt, Color( 100, 100, 100, 100 ) )

	surface.SetDrawColor( 255, 255, 255, 255 )	
	surface.DrawRect( 0, 0, pw, ts )	
	
	for i = 0, 10 do
	
		surface.SetDrawColor( 0, 0, 0, 50 )	
		surface.DrawRect( 0, 0, pw, 2 + i * 2 )		
	
	end
	
	surface.SetDrawColor( 0, 0, 0, 255 )
	surface.DrawOutlinedRect( 0, ts, pw, pt - ts )	
	surface.DrawOutlinedRect( 0, 0, pw, ts )		
	
end

derma.DefineSkin( "GMRP", "Derma skin used by the GModRP gamemode.", SKIN, "Default" )


hook.Add( "Think", "ApplyPBDermaSkin", function()

	if ( GetConVarString( "derma_skin" ) != "GMRP" ) then
	
		RunConsoleCommand( "derma_skin", "GMRP" )
		
	else
	
		hook.Remove( "Think", "ApplyPBDermaSkin" )
	
	end
	
end )